<html>
<head>
<script>
  chrome.extension.onConnect.addListener(function(port) {
    var tab = port.sender.tab;

    // This will get called from the content script using PostMessage.
    // |feedUrls| is a list of URL feeds found on the page. We only need 1 to
    // enable the PageAction icon in the Omnibox.
    port.onMessage.addListener(function(feedUrls) {
        chrome.pageAction.show(tab.id);
    });
  });

  // Chrome will call into us when the user clicks on the icon in the OmniBox.
  chrome.pageAction.onClicked.addListener(function(tab) {
  });

  chrome.tabs.onRemoved.addListener(function(reply) {
  });
</script>
</head>
</html>
